package com.threeti.mecool.framework.dao;

import com.threeti.mecool.framework.domain.DomainEntity;

/**
 * 实体创建或更新产生的异常
 *
 * @author Jay Meng
 */
public class EntitySaveOrUpdateException extends RuntimeException {
  public static final String MSG = "创建或更新发生异常";

  public EntitySaveOrUpdateException(Class<? extends DomainEntity> domainEntityClazz, Throwable cause) {
    super(domainEntityClazz.getSimpleName() + MSG, cause);
  }

  public EntitySaveOrUpdateException(String message, Throwable cause) {
    super(message, cause);
  }
}
